import request from "@/utils/request";

// 门店
export function businessMetrics(query) {
    return request({
      url: '/statistics/businessMetrics',
      method: 'get',
      params: query
    })
  }


  
// 退单统计
export function orderReport(query) {
    return request({
      url: '/statistics/orderReport',
      method: 'get',
      params: query
    })
  }

    
// 包间消费统计
export function storeReport(query) {
    return request({
      url: '/statistics/storeReport',
      method: 'get',
      params: query
    })
  }


  // 附加商品消费统计
export function salesReport(query) {
    return request({
      url: '/statistics/salesReport',
      method: 'get',
      params: query
    })
  }


// 储值卡业绩统计
export function storedCardReport(query) {
    return request({
      url: '/statistics/storedCardReport',
      method: 'get',
      params: query
    })
  }


  // 会员卡业绩统计
export function salesCardReport(query) {
    return request({
      url: '/statistics/salesCardReport',
      method: 'get',
      params: query
    })
  }


// 储值卡退卡统计
export function refundStatistics(query) {
    return request({
      url: '/statistics/refundStatistics',
      method: 'get',
      params: query
    })
  }


  
// 评价订单统计
export function orderReviewStatistics(query) {
    return request({
      url: '/statistics/orderReviewStatistics',
      method: 'get',
      params: query
    })
  }


  // 门店利润统计
export function storeProfit(query) {
    return request({
      url: '/statistics/storeProfit',
      method: 'get',
      params: query
    })
  }


//优惠券使用明细
export function couponUse(query) {
  return request({
    url: "/statistics/couponUse",
    method: "get",
    params: query,
  });
}
//技师回头及复购率分析
export function technicianAnalyse(query) {
  return request({
    url: "/statistics/technicianAnalyse",
    method: "get",
    params: query,
  });
}
// 回头客分析
export function returnedCustomer(query) {
  return request({
    url: "/statistics/returnedCustomer",
    method: "get",
    params: query,
  });
}
//项目复购率
export function itemRepurchaseRate(query) {
  return request({
    url: "/statistics/itemRepurchaseRate",
    method: "get",
    params: query,
  });
}
//消费频次分析
export function consumptionFrequency(query) {
  return request({
    url: "/statistics/consumptionFrequency",
    method: "get",
    params: query,
  });
}
//客户消费能力分析
export function consumptionCapacity(query) {
  return request({
    url: "/statistics/consumptionCapacity",
    method: "get",
    params: query,
  });
}
//会员卡销售排名（门店）
export function memberCardSellStore(query) {
  return request({
    url: "/statistics/memberCardSellStore",
    method: "get",
    params: query,
  });
}
//会员卡销售排名(员工)
export function memberCardSellStaff(query) {
  return request({
    url: "/statistics/memberCardSellStaff",
    method: "get",
    params: query,
  });
}
//储值卡销售排名(门店)
export function valueCardSellStore(query) {
  return request({
    url: "/statistics/valueCardSellStore",
    method: "get",
    params: query,
  });
}
//储值卡销售排名(员工)
export function valueCardSellStaff(query) {
  return request({
    url: "/statistics/valueCardSellStaff",
    method: "get",
    params: query,
  });
}



//渠道统计
export function channelStatement(query) {
  return request({
    url: "/statistics/channelStatement",
    method: "get",
    params: query,
  });
}


//储值卡跨店消费
export function vcCrossStoreOrder(query) {
  return request({
    url: "/statistics/vcCrossStoreOrder",
    method: "get",
    params: query,
  });
}

// 会员卡跨店消费
export function mcCrossStoreOrder(query) {
  return request({
    url: "/statistics/mcCrossStoreOrder",
    method: "get",
    params: query,
  });
}


  // 储值卡转账统计
export function queryValueCardTransStatic(query) {
  return request({
    url: "/statistics/queryValueCardTransStatic",
    method: "get",
    params: query,
  });
}
  // 收支统计
export function queryProfitAndExpend(query) {
  return request({
    url: "/statistics/queryProfitAndExpend",
    method: "get",
    params: query,
  });
}







